import Vue from 'vue'
import Vuex from 'vuex'
import PersistedState from 'vuex-persistedstate'
import login from './modules/login'
import user from './modules/user';

Vue.use(Vuex)

/* eslint-disable no-new */
const store = new Vuex.Store({
  plugins: [PersistedState({paths:['login','user']})],
  modules: {
    login,
    user
  }
})

export default store
